module.exports = app => {

    const { STRING, INTEGER, DATE, ENUM } = app.Sequelize;
    const echartsdata = app.model.define('clazz', {
        id: { type: INTEGER(20).UNSIGNED, primaryKey: true, autoIncrement: true },
        time: { type: STRING(30), allowNull: false, defaultValue: '' },
        srcip: { type: STRING(30), allowNull: false, defaultValue: '' },
        dstip: { type: STRING(30), allowNull: false, defaultValue: '' },
        siptype: { type: STRING(30), allowNull: false, defaultValue: '' },
        callid: { type: STRING(200), allowNull: true, defaultValue: '' },
        avatar_url: { type: STRING(200), allowNull: true, defaultValue: '' },
        created_at: DATE,
        updated_at: DATE
    }, {
        timestamps: true, // 是否自动写入时间戳
        tableName: 'echartsdata', // 自定义数据表名称
    });

    return echartsdata;
}

// 班级：id,name
